package com.citywithincity.lock.impl;

import java.util.concurrent.locks.ReentrantLock;

import com.citywithincity.lock.Lock;

public class LockImpl implements Lock {

	private ReentrantLock lock;
	
	public LockImpl(ReentrantLock lock) {
		this.lock = lock;
	}
	
	@Override
	public void lock() {
		lock.lock();
	}

	@Override
	public void unlock() {
		lock.unlock();
	}

}
